package thinkingJava.chapter05;
import static util.Print.*;
public class OverloadingVarargs {
	static void f(Character... args) {
		print("first");
		for (Character c : args) {
			printnb(c  + " ");
		}
		print();
	}
	static void f(Integer... args) {
		print("second");
		for (Integer i : args) {
			printnb(i + " ");
		}
		print();
	}
	static void f(Long... args) {
		print("third");
	}
	public static void main(String[] args) {
		f('a','b','c');
		f(1);
		f(2,1);
		f(0);
		f(0l);
//		f();
	}
}
